

a=open("D:/test.txt", mode="r", encoding="utf-8")
print(type(a))



'''a.seek(0)
m = a.read()
print(m)
print(type(m))
n=''
for i in m:
    if i.isdigit():
        continue
    n=n+i
print(n)'''

'''
#自己写的统计逗号
a.seek(0)
m=a.read()
n='，'
i=0
for n in m:
    i+=1
print(i)'''

'''a.seek(0)
b=a.readline() #输出第一行，加数字就输出多少个字
print(b)
print(type(b))
c=a.readline() 
print(c)
print(a.readline()) #输出剩下的'''

'''a.seek(0)
c=a.readline()
print(type(c))
print(c)
for i in c:
    print(i)'''

'''
#清除数字
new=open("D:/test.txt", mode="w", encoding="utf-8")
a.seek(0)
c=a.readlines()
n=''
for line in c:
    for letter in line:
        if letter.isdigit():
            continue
        n = n + letter
    print(n)
    new.write(n)
    n=''
new.flush()'''

'''#全文读取
print(a.read())'''

'''#读取指定数量
print(a.read(10))'''

'''a.seek(0)   #这个seek(0,2)
print(a.read())'''

'''
https://www.w3schools.com/
'''